import React, { Component } from 'react'


export default class Son1 extends Component {
    shouldComponentUpdate(nextProps, nextState) {
        console.log(nextProps, nextState)
        if(nextProps.a !== this.props.a) {
            return true
        } else {
            return false
        }
    }

    render() {
        console.log('Son1组件render....');
        return (
            <div>
                我是Son1组件,a:{this.props.a}
            </div>
        )
    }
}